package com.useeinfo.oa.open.api.maintainOrder;

import com.useeinfo.oa.common.utils.ResultUtil.ResultDto;
import com.useeinfo.oa.modules.maintaining.biz.ApplyOrderBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: YiYouFuPlatform
 * @author: Taogq
 * @createDate: 2019-01-08
 * @createTime: 13:20:14
 */
@RestController
@RequestMapping("/api/mobile/apply")
public class ApplyOrderAPI {

    @Autowired
    private ApplyOrderBiz applyOrderBiz;

    /**
     * 保存用户工单取消或者延期申请
     * @param maintainOrderId
     * @param delayTime  延期时  延期时间
     * @param type cancel为取消申请 delay 为延期申请
     * @param reason 原因
     *               dictInfoId  申请分类
     * @return
     */
    @RequestMapping("/saveOrUpdate")
    public ResultDto saveOrUpdate(String maintainOrderId,String delayTime,String type,String reason,String dictInfoId){
       return  applyOrderBiz.saveOrUpdate(maintainOrderId,delayTime,type,reason,dictInfoId);
    }
}
